<?php
/**
 * Autoloader
 * @author	zhangjian<smile_for_life@sina.cn>
 * @date	2014-01-14
 */
 defined('ROOT_PATH') || exit('Error: Error Request');
 
 spl_autoload_register(function($class_name = ''){
	if($class_name){
		$path = ROOT_PATH . '/Inc/' . $class_name . '.class.php';
		if(strpos($class_name,'_')){
			$path = ROOT_PATH . '/' . (strtr( $class_name, '_', '/')) . '.class.php';
		}
		
		include $path;
	}
 });